/*
 * @Author: gaoyu gy15354315043@163.com
 * @Date: 2024-12-20 13:23:31
 * @LastEditors: gaoyu gy15354315043@163.com
 * @LastEditTime: 2024-12-23 17:09:48
 * @Description: 
 * Copyright (c) 2024-present HBIS Digital Technology Co.,Ltd. All rights reserved. 
 */
import defaultSettings from '@/settings'
import { useSettingsStore } from '@/framework/store/modules/settings';

export default function getPageTitle(pageTitle: string): string {
  const settingsStore = useSettingsStore();
  const title = settingsStore.appName || defaultSettings.title
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
